#pragma once
#include <pthread.h>

class Mutex
{
    friend class Condition;

public:
    Mutex(void);
    ~Mutex(void);

    // lock
    int Lock();

    // try to lock
    int TryLock();

    // unlock
    int Unlock();

private:
    pthread_mutex_t     m_mutex;
};



